package com.jason.www.commons;

import com.lmax.disruptor.EventHandler;

/**
 * @author ybd
 * @date 18-9-29
 * @contact yangbingdong1994@gmail.com
 */
public class FinalCleanEventSourceHandler implements EventHandler<CleanEvent> {

    public static final EventHandler<CleanEvent> CLEAN_EVENT_HANDLER = new FinalCleanEventSourceHandler();

    @Override
    public void onEvent(CleanEvent event, long sequence, boolean endOfBatch) {
        event.clean();
    }
}
